package backend.project.gym_management.service;

import backend.project.gym_management.pojo.dto.*;
import com.github.pagehelper.PageInfo;

import javax.validation.Valid;
import java.util.List;

public interface AdminService<E> {
    void checkTableName(String tableName);
    List<E> query(AdminQuery query);
    boolean delete(AdminDeleteParam adminDelete);
    boolean add(AdminAdd adminAdd);
    boolean update(AdminUpdate adminUpdate);
    PageInfo<E> selectPage(AdminQuery query, int pageNum, int pageSize);
    boolean batchDelete(@Valid AdminBatchDeleteParam adminBatchDelete);
    boolean checkCidExist(Integer cid);
    boolean checkIntroductionExist(Integer cid);
    boolean checkCoachExist(Integer eid);
    boolean checkCoachIntroductionExist(Integer eid);
    boolean checkEquipmentExist(Integer seid);
    boolean checkRepairStatusExist(Integer seid);
    boolean checkUidExist(Integer uid);
}

